package com.share.dgs.exception;

import lombok.Getter;

/**
 * @author caifan
 * @created 2021/7/17
 * @description:
 */
public class MyException extends RuntimeException {

    @Getter
    private String errorCode;

    @Getter
    private String errorMsg;

    public MyException() {
        super();
    }

    public MyException(String errorCode, String errorMsg) {
        super(errorCode);
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

}
